package com.jollychic;

import com.jollychic.dbconfig.DB1Config;
import com.jollychic.dbconfig.DB2Config;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotation.ComponentScan;

/**
 * Created by xusheng
 */
@EnableAutoConfiguration
@ComponentScan(basePackages={"com.jollychic.aspect","com.jollychic.dbconfig","com.jollychic.services", "com.jollychic.controller",
        "com.jollychic.daojdbc", "com.jollychic.datasource", "com.jollychic.exception"})
@EnableConfigurationProperties(value = {DB1Config.class, DB2Config.class})
public class Run {

    public static void main(String[] args) {
        SpringApplication.run(Run.class,args);
    }
}
